package threadDemo;

import com.sun.deploy.net.proxy.ProxyUnavailableException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2024-12-05
 * Time: 22:00
 */

public class Demo1 {
    private static class MyThread extends Thread {
        @Override
        public void run() {
            while (true) {
                System.out.println("hello thread");
            }
        }
    }
    public void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
        while (true) {
            System.out.println("hello main");
        }
    }
}
